package com.zsp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("message")
public class Message extends Model<Message> implements Serializable {
    @Id
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 用户名
     */
    private String username;
    /**
     *电话
     */
    private String phone;
    /**
     *email
     */
    private String email;
    /**
     *地址
     */
    private String address;
    /**
     * 留言板
     */
    private String remark;

    /**
     * 审核状态
     */
    private Integer type;
    /**
     * 头像
     */
    private String image;
    /**
     *创建时间
     */
    private LocalDateTime createtime;
}
